<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>ICacheKey</title>
<link href="../../../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script>  </head>
  <body>
    <div id="container">
      <div id="leftColumn"><a href="../../../index.html">
          <div id="logo"></div>
        </a>
        <div id="paneSearch"></div>
        <div id="sideMenu"></div>
      </div>
      <div id="main">
        <div id="leftToggler"><span class="icon-toggler"></span></div>
<script type="text/javascript" src="../../../scripts/main.js"></script>        <div class="main-content" id="content" pageIds="HomeSDK_Android::com.tuya.smart.cache.api/ICacheKey///PointingToDeclaration//1977906868">
          <div class="navigation-wrapper" id="navigation-wrapper">
            <div class="breadcrumbs"><a href="../../../index.html">HomeSDK_Android</a>/<a href="../index.html">com.tuya.smart.cache.api</a>/<a href="index.html">ICacheKey</a></div>
            <div class="pull-right d-flex">
              <div id="searchBar"></div>
            </div>
          </div>
          <div class="cover ">
            <h1 class="cover"><span>I</span><wbr></wbr><span>Cache</span><wbr></wbr><span>Key</span></h1>
            <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable="/home/ops/gitlab/scan_repo/e629c23a84b5fd5f344bd02df77a4fff/home-sdk-scenelib/scenelib-api/main"><div class="symbol monospace">interface <a href="index.html">ICacheKey</a> : <span data-unresolved-link="java.io/Serializable///PointingToDeclaration/">Serializable</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><p class="paragraph">The cache key for key</p><p class="paragraph">Must override <span data-unresolved-link="java.lang/Object/equals/#java.lang.Object/PointingToDeclaration/">equals</span> and <span data-unresolved-link="java.lang/Object/hashCode/#/PointingToDeclaration/">hashCode</span> method, and the no params constructor. For example: </p><div class="sample-container"><code class="" theme="idea"><pre><code>{@code * public static class SampleKey implements CacheKey { * public String key; * public String subKey; * public String tag; * * // default no params constructor method required * public SampleKey() { * } * * // override equals method required * @Override * public boolean equals(Object object) { * if (this == object) return true; * if (object == null || getClass() != object.getClass()) return false; * SampleKey sampleKey = (SampleKey) object; * return Objects.equals(key, sampleKey.key) &amp;&amp; * Objects.equals(subKey, sampleKey.subKey) &amp;&amp; * Objects.equals(tag, sampleKey.tag); * } * * // override hashCode method required * @Override * public int hashCode() { * return Objects.hash(key, subKey, tag); * } * } * }</code>
 </pre></code></div></div></div>
          </div>
          <div class="tabbedcontent">
            <div class="tabs-section" tabs-section="tabs-section"></div>
            <div class="tabs-section-body"></div>
          </div>
        </div>
        <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Tuya Inc.</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
      </div>
    </div>
  </body>
</html>

